﻿using System;
using Autodesk.Revit.DB;
using HYRevitCode.ElementFilterUtility;

namespace Assist
{
    public class AxisFilter : HYRevitCode.ElementFilterUtility.AxisFilter
	{
		public override bool AllowElement(Element elem)
		{
			bool flag = typeof(Grid) == elem.GetType();
			bool result;
			if (flag)
			{
				result = true;
			}
			else
			{
				bool flag2 = typeof(MultiSegmentGrid) == elem.GetType();
				result = flag2;
			}
			return result;
		}
	}
}
